# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=timg
pkgver=0.9.9
pkgrel=0
pkgdesc="24-Bit color image viewer for terminal"
url="https://github.com/hzeller/timg"
arch="all"
options="!check" # package doesn't have test
license="GPL-2.0-only"
makedepends="libwebp-dev graphicsmagick-dev freetype-dev xz-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/hzeller/timg/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"/src

build() {
	make WITH_VIDEO_DECODING=0
}

package() {
	install -Dm755 timg "$pkgdir"/usr/bin/timg
}

sha512sums="f7e6d1d53631ee6b79c2770c3085768c2b4888d2c040f4f196bf543c919c1afde6cea08669d3a57f18fe5852d409e3499e9e1beb90ca07f7ad3c93a799a1d10d  timg-0.9.9.tar.gz"
